<h1>Listing techniques</h1>

<table>
  <tr>
  </tr>

<% @techniques.each do |technique| %>
  <tr>
    <td><%= "Technique: " + (@techniques.index(technique)+1).to_s %></td>
    <td class="td-no-bg"><%= link_to 'Show', [@plugin, technique] %></td>
    <td class="td-no-bg"><%= link_to 'Edit', edit_plugin_technique_path(@plugin, technique) %></td>
    <td class="td-no-bg"><%= link_to 'Destroy', [@plugin, technique], :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
<br />

<%= form_tag(new_plugin_technique_path(@plugin), :method => 'post') do %>
Template:
  <select name="template_id" onchange="">
    <option></option>
    <%= options_for_select TechniqueTemplate.all.collect {|t| [t.name, t.id]}, :include_blank => true  %>
  </select>
  <%= submit_tag 'New technique' %>
<% end %>

<br />
<div class="grouped-links">
<%= link_to 'Plugins List', plugins_path %> |
<%= link_to 'Show Plugin', plugin_path(@plugin) %>
</div>

